package com.day1012.afternoon;

public class Text {
    public static void main(String[] args) {
        System.out.println("主线程名：" + Thread.currentThread().getName());
        MyThread myThread = new MyThread();
        myThread.start();

        for (int i = 0; i < 50; i++) {
            System.out.println("线程名" + Thread.currentThread().getName() + ":" + i);
            try {
                Thread.sleep(200);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
